package org.jim.server.processor.GeneralMsg;

import org.jim.core.ImChannelContext;
import org.jim.core.packets.GeneralMsgBody;
import org.jim.core.packets.User;
import org.jim.server.processor.SingleProtocolCmdProcessor;

/**
 * @ProjectName: jim
 * @Package: org.jim.server.processor.GeneralMsg
 * @ClassName: GeneralMsgProcessor
 * @Description: java类作用描述
 * @Author: wmt
 * @CreateDate: 2020/6/18 17:25
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/6/18 17:25
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface GeneralMsgProcessor extends SingleProtocolCmdProcessor {

    /**
     * 成功回调方法
     * @param imChannelContext
     */
    void onSuccess(GeneralMsgBody generalMsgBody, ImChannelContext imChannelContext);

    /**
     * 失败回调方法
     * @param imChannelContext
     */
    void onFailed(ImChannelContext imChannelContext);

}
